// 将token添加成公共的token，方便其他模块使用
const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  name: state => state.user.userInfo.username,
  staffPhoto: state => state.user.userInfo.staffPhoto

}
export default getters
// 如何拿token this.$store.getters.token
